package ru.nsu.fit.ws.get_questions;

/**
 * Created by IntelliJ IDEA.
 * User: vtimofeev
 * Date: 12/12/12
 * Time: 10:35 PM
 * To change this template use File | Settings | File Templates.
 */
public class QuestionsGetterOutput {

    //Server guaranties that 3 arrays below have the same length if errorCode == NO_ERROR

    private String[] questionTexts;
    private int[] questionIds;
    //Possible answers. It includes all the default options
    private String[][] answers;
    private int[][] answerIds;
    //How long the question will be alive
    private int[] lifetimes;

    //Error information
    private int errorCode;
    private String errorMessage;


    public String[] getQuestionTexts() {
        return questionTexts;
    }

    public void setQuestionTexts(String[] questionTexts) {
        this.questionTexts = questionTexts;
    }

    public String[][] getAnswers() {
        return answers;
    }

    public void setAnswers(String[][] answers) {
        this.answers = answers;
    }

    public int[] getLifetimes() {
        return lifetimes;
    }

    public void setLifetimes(int[] lifetimes) {
        this.lifetimes = lifetimes;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public int[] getQuestionIds() {
        return questionIds;
    }

    public void setQuestionIds(int[] questionIds) {
        this.questionIds = questionIds;
    }

    public int[][] getAnswerIds() {
        return answerIds;
    }

    public void setAnswerIds(int[][] answerIds) {
        this.answerIds = answerIds;
    }
}

